<template>
  <div>
      <van-nav-bar
  title="登录"
  left-arrow
  @click-left="onClickLeft"
/>

<van-field v-model="ruleForm.nickname" label="文本" />
<van-field v-model="ruleForm.phone" type="tel" label="手机号" />
<van-field v-model="ruleForm.password" type="password" label="密码" />

<van-button type="info" class="ip" @click="submitForm" color="blue" round size="large">注册</van-button>
  </div>
</template>

<script>
import {zhuce} from "../radio/index"
export default {
data(){
    return{
        ruleForm:{
        phone:"",
        password:"",
        nickname:""    
        }
        
    }
},
methods:{
    
    async submitForm(){
        let res=await zhuce(this.ruleForm)
        console.log(res);
        this.$router.push("/login")
    },
    onClickLeft(){
        this.$router.push("/login")
    }
   
}
}
</script>

<style>

</style>